package player;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Book {
    private static int id = 1000;
    private String title;
    private double price;

    public void display(){
        System.out.println("书名："+this.title+"编号："+id+"价格："+this.price);
    }


    public Book(final String title, final double price) {
        id++;
        this.title = title;
        this.price = price;
    }

    public static int getId() {
        return Book.id;
    }

    public static void setId(final int id) {
        Book.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(final String title) {
        display();
        this.title = title;
    }

    public static void main(String[] args) {


        for (int i = 0; i <10 ; i++) {
            Book book = new Book("亮剑",30);
            book.display();
        }


    }
}
